import { createApp } from 'vue'
import App from './App.vue'
import 'normalize.css'
import './assets/css/index.less'
import router from './router'

import { createPinia } from 'pinia'
import { useLoginStore, useTableStore } from './store'


const app = createApp(App)


const pinia = createPinia()
app.use(pinia)

const loginStore = useLoginStore()
loginStore.addRoutes()
const tableStore = useTableStore()
tableStore.getTableAction('department',{})
tableStore.getTableAction('role', {})

app.use(router)
app.mount('#app')

